package AAAA.dao.Impl;

import AAAA.dao.AccountDao;
import AAAA.pojo.Account;
import AAAA.utils.fz;
import org.apache.ibatis.session.SqlSession;

public class AccountDaoImpl implements AccountDao {

    public Account selectByActno(String actno) {
        SqlSession sqlSession = fz.openSession();
        Account account = (Account) sqlSession.selectOne("selectByActno", actno);

        return account;
    }

    public int updateByActno(Account act) {
        SqlSession sqlSession = fz.openSession();
        int count = sqlSession.update("updateByActno", act);

        return count;

    }
}
